package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.UserLoginParam;
import com.example.lotterysystem.controller.param.UserPasswordLoginParam;
import com.example.lotterysystem.controller.param.UserRegisterParam;
import com.example.lotterysystem.service.dto.UserDTO;
import com.example.lotterysystem.service.dto.UserLoginDTO;
import com.example.lotterysystem.service.dto.UserRegisterDTO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

    /**
     * 注册接口
     * @param param
     * @return
     */
    UserRegisterDTO register(UserRegisterParam param);

    /**
     * 登录接口
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    /**
     * 查询用户列表接口
     * @param identity
     * @return
     */
    List<UserDTO> findUserBaseInfoList(String identity);
}
